package cn.stylefeng.guns.modular.tool.mapper;

import cn.stylefeng.guns.modular.tool.entity.ToolExpress;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 快递统计管理 Mapper 接口
 */
public interface ToolExpressMapper extends BaseMapper<ToolExpress> {

    /**
     * 获取列表
     */
    List<ToolExpressResult> customList(@Param("paramCondition") ToolExpressParam paramCondition);

    /**
     * 获取map列表
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ToolExpressParam paramCondition);

    /**
     * 获取分页实体列表
     */
    Page<ToolExpressResult> customPageList(@Param("page") Page page, @Param("paramCondition") ToolExpressParam paramCondition
    		, @Param("condition") String condition);

    /**
     * 获取分页实体列表
     */
    Page<ToolExpressResult> findPageBySpecFind(@Param("page") Page page, @Param("paramCondition") ToolExpressParam paramCondition
    		, @Param("condition") String condition);
    
    /**
     * 获取分页实体列表
     */
    Page<ToolExpressResult> customPageList2(@Param("page") Page page, @Param("paramCondition") ToolExpressParam paramCondition, @Param("condition") String condition);
    
    /**
     * 获取分页实体列表
     */
    Page<ToolExpressResult> findwellenPageBySpec(@Param("page") Page page, @Param("paramCondition") ToolExpressParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ToolExpressParam paramCondition);

	List<ToolExpressResult> findListBySpecSum(@Param("paramCondition")ToolExpressParam expressParam);

	void deleteBySpec(@Param("paramCondition")ToolExpressParam expressParam);

	boolean saveBatchList(@Param("list")List<ToolExpressParam> list);

	void updateBySpec(@Param("paramCondition")ToolExpressParam expressParam);

	ToolExpressResult findBySpec(@Param("paramCondition")ToolExpressParam param);

	List<ToolExpressResult> findStopOrderListBySpec(@Param("paramCondition")ToolExpressParam param);


}
